package com.lbsq.user.service.impl;

import java.util.List;

import com.lbsq.user.dao.UserDao;
import com.lbsq.user.pojo.User;
import com.lbsq.user.service.UserService;
import com.opensymphony.xwork2.ActionSupport;

public class UserServiceImpl extends ActionSupport implements UserService
{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2473541887510652809L;
	private UserDao userDao;
    
    public String execute() throws Exception
    {
       return SUCCESS;
    }
    
    public void setUserDao(UserDao userDao)
    {
        this.userDao = userDao;
    }

    public List<User> selectUserList()
    {
        return userDao.selectUserList();
    }

	public User login(final User user) {
		return userDao.checkUser(user);
	}

	public User getUserByUserName(String userName) {
		return userDao.selectUserByName(userName);
	}
}
